import { createContext } from 'react'
import { CaseSchema } from '@components/schema/caseSchema'

interface ContextSchame {
  caseDetail: CaseSchema | null
  loading: boolean
  refreshCaseDetail: () => void
  updateCaseDetail: (d: { [k: string]: any }) => void
  activeAnchor: string
}

export const Context = createContext<ContextSchame>({
  caseDetail: null,
  loading: false,
  activeAnchor: '',
  refreshCaseDetail: () => {},
  updateCaseDetail: () => {}
})
